package cn.itcast.service.user;

import cn.itcast.domain.User;
import com.github.pagehelper.PageInfo;

public interface UserService {

    PageInfo findAllUser(int pageNum, int pageSize, String company_id);

    void save(User user);

    User findById(String id);

    void update(User user);

    void delete(String id);

    /*保存当前用户的角色*/
    void saveUserRole(String userid, String[] roleIds);
    /*根据用户做登录*/
    User findByUserName(String email);
}
